(function(){
	var _Page = function(){
	};
	
	// 进行分页查询
	_Page.prototype.goPage = function(num){
		// 获取每页的行数
		var pagesize = $('#_pagesize').val();
		var $form = $('#queryForm'); // 值传递原始值
		$pagesize = $('<input id="pagesize" name="pageSize" type="hidden" value="'+pagesize+'"/>');
		$pageno = $('<input id="pageno" name="pageNo" type="hidden" value="'+num+'"/>');
		$form.append($pagesize).append($pageno);
		$form.submit();
	};
	
	// 点击按钮查询
	_Page.prototype.queryPage = function(){
		var $form = $('#queryForm');
		var pagesize = $('#_pagesize').val();
		$form.append('<input id="pagesize" name="pagesize" type="hidden" value="'+_pagesize+'"/>');
		$form.submit();
	};
	
	//  清空表单非隐藏域
	_Page.prototype.clearForm = function(){
		$(':input','#queryForm')  
		 .not(':button, :submit, :reset, :hidden')  
		 .val('')  
		 .removeAttr('checked')  
		 .removeAttr('selected');
	}
	window.Page = new _Page();
})();